package design2.memento.example;

import java.time.LocalDateTime;

/**
 * 配置文件
 */
public class ConfigFile {

	private String versionNo;  //版本号

	private String content;  //内容

	private LocalDateTime dateTime;  //时间

	private String operator;  //操作人


	//------------------getSet---------


	public ConfigFile() {
	}

	public ConfigFile(String versionNo, String content, LocalDateTime dateTime, String operator) {
		this.versionNo = versionNo;
		this.content = content;
		this.dateTime = dateTime;
		this.operator = operator;
	}

	public String getVersionNo() {
		return versionNo;
	}

	public void setVersionNo(String versionNo) {
		this.versionNo = versionNo;
	}

	public String getContent() {
		return content;
	}

	public void setContent(String content) {
		this.content = content;
	}

	public LocalDateTime getDateTime() {
		return dateTime;
	}

	public void setDateTime(LocalDateTime dateTime) {
		this.dateTime = dateTime;
	}

	public String getOperator() {
		return operator;
	}

	public void setOperator(String operator) {
		this.operator = operator;
	}

	@Override
	public String toString() {
		return "ConfigFile{" +
				"versionNo='" + versionNo + '\'' +
				", content='" + content + '\'' +
				", dateTime=" + dateTime +
				", operator='" + operator + '\'' +
				'}';
	}
}
